#!/bin/python3
"""The clean script for FRCMake"""

import os
import shutil

artifacts = [
    "output/",
    "out.log",
    "compile_commands.json"
]

def clean():
    """The clean function"""
    for artifact in artifacts:
        print("Deleting: {}".format(artifact))
        if os.path.exists(artifact):
            if os.path.isdir(artifact):
                shutil.rmtree(artifact)
            else:
                os.remove(artifact)

clean()
